import { mergeTemplates } from '$lib/builder';
import { Description, Glyph } from '$lib/components';
import { Types, defineComponent } from '$lib/ecs';
import { Item } from '$lib/item';
import { Slash } from './damage';
import { Handling } from './weapon';

export const Blade = defineComponent('Blade', {});

export const blade = [
  [Item],
  [Blade],
  [Glyph, {
    glyph: '⌡',
  }],
];

export const Machete = defineComponent('Machete', {});

export const machete = mergeTemplates(blade, [
  [Machete],
  [Description, {
    summary: "machete",
    description: "A deadly broad blade that is legally an agricultural implement",
  }],
  [Slash, {
    cut: 20,
    sever: 10,
  }],
  [Handling, {
  }],
]);
